package com.project.work.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;

/**
 * 基础—工单对象 basic_work_order
 * 
 * @author ruoyi
 * @date 2025-01-05
 */
public class BasicWorkOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @JsonFormat(shape = JsonFormat.Shape.STRING )
    private Long id;

    /** 工单名称 */
    @Excel(name = "工单名称")
    private String name;

    /** 工单类型（投诉单-complain，报修单-repair） */
    @Excel(name = "工单类型", readConverterExp = "投诉单-complain，报修单-repair")
    /**
     * @see com.project.common.enums.WorkOrderType
     */
    private String workType;

    /** 是否处理（0—未处理，1—已处理） */
    @Excel(name = "是否处理", readConverterExp = "0=—未处理，1—已处理")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 工单编号 */
    @Excel(name = "工单编号")
    private String number;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public String getWorkType() {
        return workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("workType", getWorkType())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("number", getNumber())
            .toString();
    }
}
